package com.zhang.mapper;


import com.zhang.domain.Permissions;
import com.zhang.domain.Role;
import com.zhang.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zh
 * @create 2022-02-14 9:16
 */
public interface PermissionMapper {

    List<Permissions> findPermission();

    List<Long> findMyPermission(Long roleId);

    void addRp(@Param("roleId") Long roleId,@Param("permissionIds") Long[] permissionIds);

    void deleteRp(Long roleId);

    Long queryByEmpId(Long id);
}
